package com.lin.chapter35;

public class StrategyFactory {
    public static IDeduction getDeduction(StrategyMan strategyMan){
        IDeduction deduction = null;
        try{
            deduction = (IDeduction) Class.forName(strategyMan.getValue()).newInstance();
        }catch (Exception e){

        }
        return deduction;
    }
}
